Factoring difference of squares